home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.ipst.edu!gt-news!prism!prism!not-for-mail
- From: gt1329a@prism.gatech.edu (David Ward)
- Newsgroups: comp.lang.c
- Subject: fopen() with a UNIX path?
- Date: 3 Jan 1996 23:36:12 -0500
- Organization: Ga Tech Sucks
- Message-ID: <4cflfs$1m@acmez.gatech.edu>
- NNTP-Posting-Host: acmez-prism.gatech.edu
-
- Hey everyone. Does anyone know why something like this doesn't work?
-
- main()
- {
- FILE *in;
-
- if ( in = fopen ("~/.friends", "r")) == NULL )
- printf ("Put the stupid file there\n");
- else
- ;
- /* Whatever */
- }
-
- The problem I'm having is that it won't find the file. If I put just
- ".friends" and run it in the same directory, it's fine... What am I doing
- wrong?
-
- Thanks
- Dave
- --
- |David Ward | '85 300ZX Turbo IZCC #451 |
- |gt1329a@prism.gatech.edu (404)206-9753 | The Internet Z-Car Club |
- |http://www.cc.gatech.edu/people/home/davew/ | |
- +--------------------------------------------+---------------------------+
-